package com.cccyy.data.dataType2Json;

import com.alibaba.fastjson.JSONObject;

public class Json2Map {
    public static void main(String[] args) {
        String data = "{\"insuredList\"=[\n" +
                "\t{\"insuredPersonClauseList\":[\n" +
                "\t\t{\"insuranceCode\":\"CS0001\",\n" +
                "\t\t\t\"insuranceName\":\"测试开始\",\n" +
                "\t\t\t\"dutyCode\":\"ZR0001\",\n" +
                "\t\t\t\"insuranceType\":\"1\",\n" +
                "\t\t\t\"dutyName\":\"阿拉不管\"\n" +
                "\t\t},\n" +
                "\t\t{\"insuranceCode\":\"ZZ002\",\n" +
                "\t\t\t\"insuranceName\":\"322\",\n" +
                "\t\t\t\"dutyCode\":\"3\",\n" +
                "\t\t\t\"insuranceType\":\"1\",\n" +
                "\t\t\t\"dutyName\":\"3\"\n" +
                "\t\t}\n" +
                "\t],\n" +
                "\t\"cooperativeBankCode\":\"ZJ0000005\",\n" +
                "\t\"nameInsured\":\"光大银行\",\n" +
                "\t\"waitingPeriod\":\"11\",\n" +
                "\t\"cooperativeBankName\":\"光大银行\",\n" +
                "\t\"contactAddress\":\"41241\",\n" +
                "\t\"capitalPostCode\":\"111111\",\n" +
                "\t\"managementOrganizationList\":[\n" +
                "\t\t{\"orgnaizationName\":\"中国光大银行股份有限公司长安支行\",\n" +
                "\t\t\t\"nameInsured\":\"光大银行\",\n" +
                "\t\t\t\"orgnaizationCode\":\"ZJ0000384\",\n" +
                "\t\t\t\"codeInsured\":\"ZJ0000005\"\n" +
                "\t\t}\n" +
                "\t],\n" +
                "\t\"codeInsured\":\"ZJ0000005\"\n" +
                "\t}\n" +
                "], \n" +
                "\"intRate\"=\"8.330000\", \n" +
                "\"periodTime\"=\"12\"\n" +
                "}";

        Object map = JSONObject.parseObject(data);
        System.out.println("转换的map数据" + map.toString());
    }
}
